<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?= $title ?></title>

        <!-- CSS -->
        <link href="<?= base_url() ?>files/admin/style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
        <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<?= base_url() ?>files/admin/style/css/ie6.css" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<?= base_url() ?>files/admin/style/css/ie7.css" /><![endif]-->

        <!-- JavaScripts-->
        <script type="text/javascript" src="<?= base_url() ?>files/admin/style/js/jquery.js"></script>
        <script type="text/javascript" src="<?= base_url() ?>files/admin/style/js/jNice.js"></script>
    </head>

    <body>
        <div id="wrapper">
            <!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
            <h1><a href="#"><span><?= $title ?></span></a></h1>

            <!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
            <ul id="mainNav">
                <?php $number = 0; $items; $current_menu; foreach ($menu as $menu_item): ?>
                    <li>
                        <a href='<?php echo base_url() . "ql/" . $menu_item["url"]; ?>' <?php if ($number == $main_menu_active) {echo 'class="active"';$items = $menu_item['items'];$current_menu=$menu_item["url"];}?> >
                            <?= $menu_item['title'] ?>
                        </a>
                    </li>
                <?php $number++; endforeach ?>
                <li class="logout"><a href="<?= base_url() ?>ql/tai_khoan/dang_xuat">ĐĂNG XUẤT</a></li>
            </ul>
            <!-- // #end mainNav -->

            <?php if (isset($message)) echo '<div class="success">' . $message . '</div>'; ?>

            <div id="containerHolder">
                <div id="container">
                    <div id="sidebar">
                        <ul class="sideNav">
                            <?php $number = 0; foreach ($items as $menu_item): ?>
                                <li><a href='<?php echo base_url() . "ql/$current_menu/" . $menu_item["url"]; ?>' <?php if ($number == $sub_menu_active) echo 'class="active"';?> >
                                    <?= $menu_item['title'] ?>
                                    </a>
                                </li>
                            <?php $number++; endforeach ?>
                        </ul>
                        <!-- // .sideNav -->
                    </div>    
                    <!-- // #sidebar -->

                    <!-- h2 stays for breadcrumbs -->
                    <h2><a href="#">Dashboard</a> &raquo; <a href="#" class="active">Print resources</a></h2>

                    <div id="main">
                        <?=$container?>
                    </div>
                    <!-- // #main -->
                    <div class="clear"></div>
                </div>
                <!-- // #container -->
            </div>	
            <!-- // #containerHolder -->

            <p id="footer"><a href="http://www.danagold.vn">Công ty cổ phần DANAGOLD.</a><br/>Tầng 2 - 79, đường Quang Trung, Q.Hải Châu, TP. Đà Nẵng<br/>Điện thoại: 0511.3810077 - 0511.3707467 - Email <a href="mailto:hoadh@danagold.vn">hoadh@danagold.vn</a></p>
        </div>
        <!-- // #wrapper -->
    </body>
</html>